﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ClinicalMassageSystem
{
    public partial class MainScreen : Form
    {
        public string UserName { get; set; }

        public MainScreen(string user)
        {
            UserName = user;
            InitializeComponent();
            userNameLabel.Text = UserName;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            PatientProfile patientScreen = new PatientProfile(1);
            patientScreen.Visible = true;
        }

        private void MainScreen_Load(object sender, EventArgs e)
        {

        }

        private void btnOpenSearch_Click(object sender, EventArgs e)
        {
            SearchScreen ss = new SearchScreen();
            ss.Visible = true;
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            BackupRestoreScreen backupRestore = new BackupRestoreScreen();
            backupRestore.Visible = true;
        }

        private void llModifyDBConn_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            UpdateConnectionString ucs = new UpdateConnectionString();
            ucs.ShowDialog();
        }
    }
}
